<%@ page language="java" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<HTML>
<HEAD>
    <meta http-equiv="Content-Language" content="zh-cn">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <%--	<link href="${pageContext.request.contextPath}/admin/css/Style.css"--%>
    <%--		rel="stylesheet" type="text/css" />--%>
     <link rel="stylesheet" href="${pageContext.request.contextPath}/admin/css/bootstrap.min.css">
    <script language="javascript"
<%--            src="${pageContext.request.contextPath}/admin/js/public.js"></script>--%>
    <script type="text/javascript">
        function addNotice() {
            window.location.href = "${pageContext.request.contextPath}/admin/notices/add.jsp";
        }
    </script>
</HEAD>
<body>
<br/>
<form id="Form1" name="Form1" action="" method="post">
    <table cellSpacing="1" cellPadding="0" width="100%" align="center" border="0">
        <tbody>
        <tr>
            <td align="center" bgColor="#afd1f3">
                <h4><strong>公 告 列 表</strong></h4>
            </td>
        </tr>
        <tr>
            <td align="center">
                <table class="table-hover table-striped table">
                    <tr>
                        <th style="text-align: center" width="12%">公告编号</th>
                        <th style="text-align: center" width="12%">公告标题</th>
                        <th style="text-align: center" width="24%">公告内容</th>
                        <th style="text-align: center" width="8%">时间</th>
                        <th width="8%" style="text-align: center">编辑</th>
                        <th width="8%" style="text-align: center">删除</th>
                    </tr>
                    <c:forEach items="${notices}" var="n">
                        <tr>
                            <td align="center"
                                width="23" style="vertical-align: middle">${n.n_id }</td>
                            <td align="center"
                                width="18%" style="vertical-align: middle">${n.title }</td>
                            <td align="center"
                                width="8%" style="vertical-align: middle">${n.details }</td>
                            <td align="center"
                                width="8%" style="vertical-align: middle">${n.n_time }</td>
                            <td align="center" width="7%" style="vertical-align: middle">
                                <a href="${pageContext.request.contextPath}/manager/FindByIdNoticeServlet?id=${n.n_id}"  class="btn btn-primary" style="color: white">
<%--                                    <img src="${pageContext.request.contextPath}/admin/images/i_edit.gif" border="0"--%>
<%--                                         style="CURSOR: hand">--%>编辑
                                </a>
                            </td>
                            <td align="center" width="7%" style="vertical-align: middle">
                                <a href="${pageContext.request.contextPath}/manager/DeleteNoticeServlet?id=${n.n_id}" class="btn btn-danger" style="color: white">
<%--                                    <img src="${pageContext.request.contextPath}/admin/images/i_del.gif" width="16"--%>
<%--                                         height="16" border="0" style="CURSOR: hand">--%>删除
                                </a>
                            </td>
                        </tr>
                    </c:forEach>
                </table>
            </td>
        </tr>
        <tr>
            <td align="right">
                <button type="button" id="add" name="add" value="&#28155;&#21152;" class="btn btn-primary"
                        onclick="addNotice()">
                    &#28155;&#21152;
                </button>
            </td>
        </tr>
        </TBODY>
    </table>
</form>
</body>
</HTML>
